package net.dopan.pigframe.user.model.entity;


import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import lombok.*;

import java.io.Serializable;
import java.util.Date;

/**
 * @author wufeihong
 *  标签表
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
@TableName("tag")
public class Tag extends Model<Tag> {

  private static final long serialVersionUID = 1L;
  /**
   * 标签Id
   */
  @TableId(value = "tag_id", type = IdType.AUTO)
  private long tagId;
  @TableField("tag_msg")
  private String tagMsg;
  @TableField("create_time")
  private Date createTime;
  @TableField("update_time")
  private Date updateTime;

  @Override
  protected Serializable pkVal() {
    return this.tagId;
  }
}
